package com.wanmait.recruitment.service.impl;

import com.github.pagehelper.PageInfo;
import com.wanmait.recruitment.mapper.EducationMapper;
import com.wanmait.recruitment.pojo.Education;
import com.wanmait.recruitment.service.EducationService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
@Service
@Transactional(rollbackFor = Exception.class)
public class EducationServicelmpl  implements EducationService {
    @Resource
    private EducationMapper educationMapper;
    @Override
    public void insert(Education object) {

    }

    @Override
    public void delete(Integer id) {
        educationMapper.deleteEducation(id);

    }
    @Override
   public  void insertEducation(Education education){
        educationMapper.insertEducation(education);

   }
   @Override
   public  int countEducation(){
        return  educationMapper.CountEducation();
   }
    @Override
    public void delete(String ids) {

    }

    @Override
    public void update(Education object) {

    }

    @Override
    public Education findById(Integer id) {
        return educationMapper.selectById(id);
    }

    @Override
    public List<Education> findAll() {
        return null;
    }

    @Override
    public List<Education> findAll(Education object) {
        return null;
    }
    @Override
    public  List<Education>findListById(Integer id){
        return  educationMapper.selectList(id);
    }

    @Override
    public PageInfo<Education> findPage(int pageNum, int pageSize) {
        return null;
    }
    @Override
    public  void update(Education education,Integer id){

        educationMapper.updateEducation(education,id);

    }
}
